package com.learn.excel.core.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;

/**
 * @author: 杜海强
 * @description:
 * @date: 2021/4/16
 */
@Data
public class PageBean extends BaseBean {

    @ApiModelProperty(value = "查询页码, 默认为1", required = true)
    @Min(value = 1, message = "分页参数pageNum最小值为1")
    private Integer pageNumber = 1;

    @ApiModelProperty(value = "每页记录数, 默认为10", required = true)
    @Min(value = 1, message = "分页参数pageSize最小值为1")
    private Integer pageSize = 10;
}
